{include file="header.html"}    
{include file="title.html"}

<style>
    #page-sdemand{background-color: #fff;}
    .sdemand-detail{}
    .sdemand-detail .tit_area{background: #f6f6f6;border-bottom: 1px solid #e0e1e2;padding: 10px 10px;}
    .sdemand-detail .tit_area h1{height:30px;line-height:30px;padding:10px 10px;font-size:24px;}
    .sdemand-detail .tit_area .status_bar{padding-top:10px;padding-bottom: 10px;line-height: 20px;font-size: 12px;color: #7a7e88;}
    .sdemand-detail .tit_area .status_bar .date{float:left;}
    .sdemand-detail .tit_area .status_bar .browse_num{float:right;}
    .sdemand-detail .tit_area .status_bar .browse_num em{color:red;font-style:normal;padding:0 5px;}
    .sdemand-detail .other{padding: 10px 10px;}
    .sdemand-detail .other p {margin: 10px 0 5px 0;color: #585858;font-size: 14px;}
    .sdemand-detail .default{padding:10px;}
	.sdemand-detail .default img{max-width:100%}
    .sdemand-detail .more{padding:10px;border-top: 1px solid #e0e1e2;margin-top:10px;}
    .sdemand-detail .more h3{ font-weight:normal;font-size:14px; line-height:20px;margin-bottom:10px;}
    .sdemand-detail .more h3 span{color:#999;}
</style>
<div id="page-sdemand">
    <div class="sdemand-detail">
        <div class="tit_area">
            <h1>{$article.title|escape}</h1>
            <div class="status_bar clearfix">
                <span class="date">{$article.add_time|date:Y-m-d H:i}</span><span class="browse_num">{$lang.view}<em>{$article.views}</em>{$lang.item}</span>
            </div>
        </div>

        <div class="other">
            <p>{if $article.type eq 1}{$lang.supply}{else}{$lang.demand}{/if}&nbsp;&nbsp; |&nbsp;&nbsp; {if $article.price neq 0}{$article.price|price}{elseif $article.price_from neq 0 and $article.price_to neq 0}{$article.price_from|price} - {$article.price_to|price}{else}{$lang.asktoface}{/if} &nbsp;&nbsp;|&nbsp;&nbsp; {$article.region_name|escape}</p>
            <p>{$lang.name}:{$article.name}</p>
            <p>{$lang.phone}:{$article.phone}</p>
        </div>
        <div class="default">
            <!-- {if $article.store_id} -->
            {$article.content|escape:editor}
            <!-- {else} -->
            {$article.content}
            <!-- {/if} -->
        </div>
        <div class="more">
            <h3>{$lang.pre_article}: <!--{if $pre_article}--><a href="{url app=sdemand&act=view&id=$pre_article.id}">{$pre_article.title|escape}</a> <span>{$pre_article.add_time|date:Y-m-d H:i}</span><!--{else}-->{$lang.no_records}<!--{/if}--></h3>
            <h3>{$lang.next_article}: <!--{if $next_article}--><a href="{url app=sdemand&act=view&id=$next_article.id}">{$next_article.title|escape}</a> <span>{$next_article.add_time|date:Y-m-d H:i}</span><!--{else}-->{$lang.no_records}<!--{/if}--></h3>
        </div>
    </div>

</div>

{include file=footer.html}